Optimal. Leaf size=142 \[ -\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{8 b d^2 n \sqrt{d+e x}}{15 e^2}-\frac{8 b d^{5/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{15 e^2}+\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.100847, antiderivative size = 142, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {43, 2350, 12, 80, 50, 63, 208} \[ -\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{8 b d^2 n \sqrt{d+e x}}{15 e^2}-\frac{8 b d^{5/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{15 e^2}+\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2350
Rule 12
Rule 80
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int x \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right ) \, dx &=-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}-(b n) \int \frac{2 (d+e x)^{3/2} (-2 d+3 e x)}{15 e^2 x} \, dx\\ &=-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}-\frac{(2 b n) \int \frac{(d+e x)^{3/2} (-2 d+3 e x)}{x} \, dx}{15 e^2}\\ &=-\frac{4 b n (d+e x)^{5/2}}{25 e^2}-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{(4 b d n) \int \frac{(d+e x)^{3/2}}{x} \, dx}{15 e^2}\\ &=\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2}-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{\left (4 b d^2 n\right ) \int \frac{\sqrt{d+e x}}{x} \, dx}{15 e^2}\\ &=\frac{8 b d^2 n \sqrt{d+e x}}{15 e^2}+\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2}-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{\left (4 b d^3 n\right ) \int \frac{1}{x \sqrt{d+e x}} \, dx}{15 e^2}\\ &=\frac{8 b d^2 n \sqrt{d+e x}}{15 e^2}+\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2}-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}+\frac{\left (8 b d^3 n\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{d}{e}+\frac{x^2}{e}} \, dx,x,\sqrt{d+e x}\right )}{15 e^3}\\ &=\frac{8 b d^2 n \sqrt{d+e x}}{15 e^2}+\frac{8 b d n (d+e x)^{3/2}}{45 e^2}-\frac{4 b n (d+e x)^{5/2}}{25 e^2}-\frac{8 b d^{5/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{15 e^2}-\frac{2 d (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{2 (d+e x)^{5/2} \left (a+b \log \left (c x^n\right )\right )}{5 e^2}\\ \end{align*}
Mathematica [A] time = 0.117947, size = 116, normalized size = 0.82 \[ \frac{2 \sqrt{d+e x} \left (15 a \left (-2 d^2+d e x+3 e^2 x^2\right )+15 b \left (-2 d^2+d e x+3 e^2 x^2\right ) \log \left (c x^n\right )+2 b n \left (31 d^2-8 d e x-9 e^2 x^2\right )\right )-120 b d^{5/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{225 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.616, size = 0, normalized size = 0. \begin{align*} \int x \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \sqrt{ex+d}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.42823, size = 722, normalized size = 5.08 \begin{align*} \left [\frac{2 \,{\left (30 \, b d^{\frac{5}{2}} n \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) +{\left (62 \, b d^{2} n - 30 \, a d^{2} - 9 \,{\left (2 \, b e^{2} n - 5 \, a e^{2}\right )} x^{2} -{\left (16 \, b d e n - 15 \, a d e\right )} x + 15 \,{\left (3 \, b e^{2} x^{2} + b d e x - 2 \, b d^{2}\right )} \log \left (c\right ) + 15 \,{\left (3 \, b e^{2} n x^{2} + b d e n x - 2 \, b d^{2} n\right )} \log \left (x\right )\right )} \sqrt{e x + d}\right )}}{225 \, e^{2}}, \frac{2 \,{\left (60 \, b \sqrt{-d} d^{2} n \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right ) +{\left (62 \, b d^{2} n - 30 \, a d^{2} - 9 \,{\left (2 \, b e^{2} n - 5 \, a e^{2}\right )} x^{2} -{\left (16 \, b d e n - 15 \, a d e\right )} x + 15 \,{\left (3 \, b e^{2} x^{2} + b d e x - 2 \, b d^{2}\right )} \log \left (c\right ) + 15 \,{\left (3 \, b e^{2} n x^{2} + b d e n x - 2 \, b d^{2} n\right )} \log \left (x\right )\right )} \sqrt{e x + d}\right )}}{225 \, e^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.3727, size = 224, normalized size = 1.58 \begin{align*} \frac{2 \left (- \frac{a d \left (d + e x\right )^{\frac{3}{2}}}{3} + \frac{a \left (d + e x\right )^{\frac{5}{2}}}{5} - b d \left (\frac{\left (d + e x\right )^{\frac{3}{2}} \log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )}}{3} - \frac{2 n \left (\frac{d^{2} e \operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{- d}} \right )}}{\sqrt{- d}} + d e \sqrt{d + e x} + \frac{e \left (d + e x\right )^{\frac{3}{2}}}{3}\right )}{3 e}\right ) + b \left (\frac{\left (d + e x\right )^{\frac{5}{2}} \log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )}}{5} - \frac{2 n \left (\frac{d^{3} e \operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{- d}} \right )}}{\sqrt{- d}} + d^{2} e \sqrt{d + e x} + \frac{d e \left (d + e x\right )^{\frac{3}{2}}}{3} + \frac{e \left (d + e x\right )^{\frac{5}{2}}}{5}\right )}{5 e}\right )\right )}{e^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{e x + d}{\left (b \log \left (c x^{n}\right ) + a\right )} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]